package com.sdp.refund.db.refund_area.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2024-08-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("refund_area")
public class RefundArea extends Model<RefundArea> {

    private static final long serialVersionUID=1L;

    /**
     *  内码
     */
    @TableId("key_id")
    private String keyId;

    /**
     * 区域编码
     */
    @TableField("area_code")
    private String areaCode;

    /**
     * 区域名称
     */
    @TableField("area_name")
    private String areaName;

    /**
     * 父区域编码
     */
    @TableField("parent_area")
    private String parentArea;

    /**
     * 区域层级
     */
    @TableField("area_level")
    private String areaLevel;

    /**
     * 区域类型(0小区，1楼栋，2单元)
     */
    @TableField("area_type")
    private String areaType;


    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
